package com.gitee.absolute_spirit.hiot_android.data.source.proto

import com.gitee.absolute_spirit.hiot_android.NavigateArgs
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class DataStoreRepository @Inject constructor(private val dataStoreManager: DataStoreManager) {

    suspend fun saveData(id: Int, type: String) {
        dataStoreManager.saveData(id, type)
    }

    val navigateArgsModel: Flow<NavigateArgs> = dataStoreManager.navigateArgsModel
}